package com.lovemanai.service.impl;

import com.lovemanai.service.Axe;
import com.lovemanai.service.Person;

public class Chinese implements Person{

	private Axe axe;
	/*
	//设值注入需要的setter方法
	public void setAxe(Axe axe) {
		this.axe = axe;
	}
	*/

	//构造注入
	public Chinese(Axe axe) {
		this.axe = axe;
	}
	
	@Override
	public void useAxe() {
		
		System.out.println(axe.chop());
		
	}
	
}
